﻿using System;
using System.ComponentModel;

namespace SxPackages.STC32G.Models
{
	[Serializable]
	class MathOptions
	{
		protected STC32GQFP64 mParent = null;

		[Category("数学库配置"),
		DisplayName("使能MDU32"),
		DefaultValue(false),
		Description("是否使能32位硬件乘除单元")]
		public bool EnableMDU { get; set; } = false;

		[Category("数学库配置"),
		DisplayName("时钟选择"),
		DefaultValue(TFPUClock.系统时钟),
		Description("选择哪个时钟作为TFPU时钟源")]
		public TFPUClock EnablePLL { get; set; } = TFPUClock.系统时钟;

		public override String ToString()
		{
			return string.Empty;
		}

		public MathOptions(STC32GQFP64 aParent)
		{
			this.mParent = aParent;
		}
	}
}
